package com.idbk.chargestation.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class JsonMyMessage implements Serializable {
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4996003678476646623L;
	
	public final static int MESSAGE_SYSTEM = 0;
	public final static int MESSAGE_TIP = 1;
	public final static int MESSAGE_WARN = 2;
	
	public int id;
	
	public String username;
	
	public String tag;
	
	public int messageType;//消息类型
	
	public boolean isRead;
	
	public String date;
	
	public String content;
		
	
	public JsonMyMessage(){
		
	}
	
	public JsonMyMessage(String username,String msg){	
		this.username = username;
		content = msg;
		isRead = false;
		messageType = MESSAGE_TIP;
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
		date = sdf.format(new Date());
	}
}
